package main

import (
	"go-vue-blog-sever/config"
	"go-vue-blog-sever/router"
	"go-vue-blog-sever/utils"
	_ "go-vue-blog-sever/utils"
)

func main() {
	c := config.NewRoutConfig(struct{ Log, Cor bool }{Log: true, Cor: true})
	rou := router.NewRouter(c)
	if err := rou.Router().Run(); err != nil {
		utils.LoggerError("启动失败", err.Error(), nil)

	}
}
